﻿using System;

namespace Project.MVC.PhanQuyen.Model
{
    [Serializable]
    public class PQNhatKyInfo
    {
        #region Properties
        #region Primary Key
        public int Id { get; set; }
        #endregion

        public string TenNguoiDung { get; set; }

        public string HoTenNguoiDung { get; set; }

        public string SanGiaoDich { get; set; }

        public DateTime? ThoiGian { get; set; }

        public string ThoiGianStr
        {
            get
            {
                if (ThoiGian != null)
                    return String.Format("{0:dd/MM/yyyy HH:mm:ss}", ThoiGian);
                else
                    return null;
            }
        }

        public string ThaoTac { get; set; }

        public string DiaChiIP { get; set; }

        public string HeDieuHanh { get; set; }

        public string TrinhDuyet { get; set; }

        public string NoiDung { get; set; }

        #endregion		
    }

    [Serializable]
    public class ThaoTacEnum
    {
        public const string XEM     = "XEM";
        public const string THEM    = "THÊM";
        public const string SUA     = "SỬA";
        public const string XOA     = "XOÁ";
        public const string XUAT    = "XUẤT DỮ LIỆU";
        public const string IN      = "IN";
        public const string LOGIN   = "ĐĂNG NHẬP";
        public const string LOGOUT  = "THOÁT";
        public const string ERROR   = "LỔI";
        public const string SMS = "SMS";
        public const string EMAIL = "EMAIL";
        /// <summary>
        /// MANH.NGUYEN - 13/09/2011 - LƯU GIỮ NHẬT KÝ CÁC THAO TÁC CHUYỂN (CHUYỂN SANG KẾ TOÁN...)
        /// </summary>
        public const string CHUYEN = "CHUYỂN";
        public const string DUYET = "DUYET";
        public const string PHANQUYEN = "PHANQUYEN";
    }
}